/*************************
  声控条类

  *************************/
#ifndef VOLUMESLIDER_H
#define VOLUMESLIDER_H

#include <QSlider>

class VolumeSlider : public QSlider
{
    Q_OBJECT
public:
    VolumeSlider(QWidget *parent = 0);
    ~VolumeSlider();
    int open_mixer();
    int get_volume();
    int set_volume(int);
    void close_mixer(int);
signals:
    void sendVolumeValue(int);
    void focusOut();
    void focusIn();
public slots:
    void setVolume(int);
protected:
    void focusOutEvent(QFocusEvent *);
    void focusInEvent(QFocusEvent *);

};
#endif // VOLUMESLIDER_H
